// 推荐职位列表
<template>
    <div class="recommendedPostResume">
        <!-- <el-card class="isCheckAll-card">
            <el-row class="isCheckAll-row">
                <el-col :span="4" class="tips-col">
                    <span class="tips">根据求职意向为您推荐</span>
                </el-col>
                <el-col :span="20">
                    <el-checkbox
                        :indeterminate="isIndeterminate"
                        v-model="checkAll"
                        @change="handleCheckAllChange"
                    >全选</el-checkbox>
                    <el-button type="primary" size="small" class="applyResume">一键申请</el-button>
                </el-col>
            </el-row>
        </el-card> -->
        <div class="dataList">
            <el-card class="listContainer">
                <el-checkbox-group v-model="checkedResumes" @change="handleCheckedCitiesChange">
                    <div class="list">
                        <div class="logo">
                            <img src="../../../assets/img/enterprise/enterprise.png" alt />
                        </div>
                        <div class="basicInfo">
                            <p class="postWages">
                                <span class="post">人事专员</span>
                                <span class="wages">4k-6k</span>
                            </p>
                            <p class="educatWorkYears">
                                <span class="education">大专&nbsp;&nbsp;|</span>
                                <span class="workYears">&nbsp;&nbsp;1-3年</span>
                            </p>
                            <p class="postWages">
                                <span class="compaName">湖南赛琳科技股份有限公司</span>
                                <el-checkbox label="上海" key="city">.</el-checkbox>
                            </p>
                        </div>
                    </div>
                </el-checkbox-group>
            </el-card>
            <el-card class="listContainer">
                <el-checkbox-group v-model="checkedResumes" @change="handleCheckedCitiesChange">
                    <div class="list">
                        <div class="logo">
                            <img src="../../../assets/img/enterprise/enterprise.png" alt />
                        </div>
                        <div class="basicInfo">
                            <p class="postWages">
                                <span class="post">人事专员</span>
                                <span class="wages">4k-6k</span>
                            </p>
                            <p class="educatWorkYears">
                                <span class="education">大专&nbsp;&nbsp;|</span>
                                <span class="workYears">&nbsp;&nbsp;1-3年</span>
                            </p>
                            <p class="postWages">
                                <span class="compaName">湖南赛琳科技股份有限公司</span>
                                <el-checkbox label="上海" key="city">.</el-checkbox>
                            </p>
                        </div>
                    </div>
                </el-checkbox-group>
            </el-card>
            <el-card class="listContainer">
                <el-checkbox-group v-model="checkedResumes" @change="handleCheckedCitiesChange">
                    <div class="list">
                        <div class="logo">
                            <img src="../../../assets/img/enterprise/enterprise.png" alt />
                        </div>
                        <div class="basicInfo">
                            <p class="postWages">
                                <span class="post">人事专员</span>
                                <span class="wages">4k-6k</span>
                            </p>
                            <p class="educatWorkYears">
                                <span class="education">大专&nbsp;&nbsp;|</span>
                                <span class="workYears">&nbsp;&nbsp;1-3年</span>
                            </p>
                            <p class="postWages">
                                <span class="compaName">湖南赛琳科技股份有限公司</span>
                                <el-checkbox label="上海" key="city">.</el-checkbox>
                            </p>
                        </div>
                    </div>
                </el-checkbox-group>
            </el-card>
            <el-card class="listContainer">
                <el-checkbox-group v-model="checkedResumes" @change="handleCheckedCitiesChange">
                    <div class="list">
                        <div class="logo">
                            <img src="../../../assets/img/enterprise/enterprise.png" alt />
                        </div>
                        <div class="basicInfo">
                            <p class="postWages">
                                <span class="post">人事专员</span>
                                <span class="wages">4k-6k</span>
                            </p>
                            <p class="educatWorkYears">
                                <span class="education">大专&nbsp;&nbsp;|</span>
                                <span class="workYears">&nbsp;&nbsp;1-3年</span>
                            </p>
                            <p class="postWages">
                                <span class="compaName">湖南赛琳科技股份有限公司</span>
                                <el-checkbox label="上海" key="city">.</el-checkbox>
                            </p>
                        </div>
                    </div>
                </el-checkbox-group>
            </el-card>
            <el-card class="listContainer">
                <el-checkbox-group v-model="checkedResumes" @change="handleCheckedCitiesChange">
                    <div class="list">
                        <div class="logo">
                            <img src="../../../assets/img/enterprise/enterprise.png" alt />
                        </div>
                        <div class="basicInfo">
                            <p class="postWages">
                                <span class="post">人事专员</span>
                                <span class="wages">4k-6k</span>
                            </p>
                            <p class="educatWorkYears">
                                <span class="education">大专&nbsp;&nbsp;|</span>
                                <span class="workYears">&nbsp;&nbsp;1-3年</span>
                            </p>
                            <p class="postWages">
                                <span class="compaName">湖南赛琳科技股份有限公司</span>
                                <el-checkbox label="上海" key="city">.</el-checkbox>
                            </p>
                        </div>
                    </div>
                </el-checkbox-group>
            </el-card>
        </div>
        <div class="seeMore">
            <span>查看更多</span>
        </div>
    </div>
</template>
<script>
export default {
    name: 'recommendedPostResume',
    props: ['recommendPostData'],
    data() {
        return {
            checkAll: false,
            isIndeterminate: false,
            checkedResumes: []
        };
    },
    created() {
        console.log(this.recommendPostData, '从父组件传过来的数据');
    },
    methods: {
        //    点击全选
        handleCheckAllChange(val) {
            console.log(val);
        },
        handleCheckedCitiesChange(value) {
            console.log(value);
        }
    }
};
</script>
<style lang="css" scoped>
.recommendedPostResume {
    /* border: 1px solid red; */
}
.isCheckAll-card {
    margin: 16px auto;
    height: 50px;
    box-sizing: border-box;
}
.isCheckAll-card /deep/ .el-card__body {
    padding: 13px 20px;
}
.isCheckAll-row {
    box-sizing: border-box;
}
.isCheckAll-row .tips {
    width: 140px;
    height: 24px;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 500;
    line-height: 24px;
    color: rgba(85, 85, 85, 1);
    opacity: 1;
}
.applyResume {
    width: 94px;
    height: 24px;
    background: #1893fc;
    line-height: 6px;
    margin-left: 32px;
}
.recommendedPostResume .dataList {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.dataList .el-card {
    /* background: chartreuse; */
    width: 32%;
    margin-right: 2%;
    margin-bottom: 18px;
    box-sizing: border-box;
}
.dataList .el-card:nth-child(3n + 1) {
    margin-left: 0;
}
.dataList .el-card:nth-child(3n) {
    margin-right: 0;
}

.listContainer {
    height: 130px;
}
.list {
    display: flex;
}
.logo {
    width: 68px;
    height: 68px;
    margin-left: 10px;
    margin-top: 10px;
}
.logo img {
    width: 100%;
    height: 100%;
}
.basicInfo {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.basicInfo p {
    height: 22px;
    width: 100%;
}
.basicInfo .postWages {
    display: flex;
    justify-content: space-between;
}
.basicInfo .educatWorkYears {
    padding-top: 10px;
    padding-bottom: 10px;
}
.basicInfo p .post {
    width: 64px;
    height: 22px;
    font-size: 16px;
    font-family: PingFang SC;
    font-weight: 600;
    line-height: 22px;
    color: rgba(34, 34, 34, 1);
    opacity: 1;
}
.basicInfo p .wages {
    width: 52px;
    height: 22px;
    font-size: 16px;
    font-family: PingFang SC;
    font-weight: 600;
    line-height: 22px;
    color: #fd4e40;
}
.basicInfo p .education,
.basicInfo p .workYears,
.basicInfo p .compaName {
    height: 20px;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 16px;
    color: #555555;
}
.seeMore {
    text-align: center;
    margin-top: 25px;
}
.seeMore span {
    display: inline-block;
    width: 340px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #1893fc;
    cursor: pointer;
    font-size: 16px;
    font-family: PingFang SC;
    color: #1893fc;
    font-weight: 400;
}
</style>